<?php
if(isset($_GET['id'])) {
	$data = getTypeDuAnByID($_GET['id']);
	if (count($data) > 0) {
?>
<style>
.class-add-project tr { 
	background: #FFFFFF;
}

.class-add-project td {
	height: 30px;
}
</style>
<div>
	<div style="width: 100%; color:#588f27; text-transform:uppercase; font-weight: bold; text-align:center;"><h1 style="font-size: 16px;">Cập Nhật Loại Dự Án</h1></div>
    <div class="class-add-project">
    	<form method="post" id="form_action_uptypepro" action="control/AdminTypeDuAn.php">
            <table bgcolor="#e0eaf1" cellspacing="1" cellpadding="0" border="0" width="100%">
                <tr>
                    <td width="15%"><span style="margin:5px;"><strong>Tên Loại Dự Án <font color="#FF0000">(*)</font></strong></span></td>
                    <td>
                    	<input type="hidden" name="idpro" value="<?php echo($data[0][0]) ?>" />
                    	<input name="form_name" id="form_name" type="text" style="width: 99%; height: 25px; padding:5px; border: 1px solid #F90;" placeholder="Tên loại dự án" maxlength="255" value="<?php echo($data[0][1]) ?>" />
                    </td>
                </tr>
                <tr>
                    <th colspan="2"><input type="hidden" name="act" value="edit" /><input type="submit" value="Cập Nhật" style="border-radius: 5px; padding:5px; width:100px; background:#588f27; color:#FFF; font-weight:bold; text-align:center;" /></th>
                </tr>
            </table>
    	</form>
    </div>
</div>
<style>
.class_remove_image {
	height: 20px; 
	line-height: 20px; 
	opacity: 0.5; 
	margin-top: 5px; 
	position: absolute; 
}

.class_remove_image:hover {
	opacity: 1; 
	cursor: pointer;
}
</style>

<?php
	}
}
?>